{% extends "base.html" %}
{% from "_formhelpers.html" import render_field %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card shadow">
            <div class="card-header bg-primary text-white">
                <h5 class="mb-0">上传银行流水Excel文件</h5>
            </div>
            <div class="card-body">
                <form method="POST" enctype="multipart/form-data" novalidate>
                    {{ form.csrf_token }}
                    <div class="mb-3">
                        {{ render_field(form.file, class_="form-control") }}
                    </div>
                    <button type="submit" class="btn btn-primary w-100">
                        <i class="bi bi-upload"></i> 开始计算利息
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
